package com.beta.vo.user;

import com.beta.em.UserStatus;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.NotBlank;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
public class UserVO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9047493140784693233L;

	private Integer id;

	/**  */
	@NotBlank
	private String phone;

	/**  */
	private String phoneNormalized;

	/**  */
	private String username;

	/**  */
	private String gender;

	/**  */
	@JsonProperty
	private String idCardNumber;

	/**  */
	private String status;

	/**  */
	private Date createdAt;

	/**  */
	private Date updatedAt;

	/**  */
	private String userType;

	/**  */
	private String idCardPicture;

	/**  */
	private String cityName;

	/**  */
	private String cityCode;

	/**  */
	private String businessLicenceNumber;

	/**  */
	private String businessLicencePicture;

	/**  */
	private String name;

	/**  */
	private String code;

	/**  */
	private String ledgerCode;

	/**  */
	private String customerType;

	/**  */
	private String idCardBackPicture;

	/**  */
	private String bankCardPicture;

	/**  */
	private String bankCardBackPicture;

	/**  */
	private String personPhoto;

	/**  */
	private String businessCertPicture;

	/**  */
	private String orgCodePicture;

	/**  */
	private String taxRegPicture;

	/**  */
	private String bankLisencePicture;

	/**  */
	private String ledgerStatus;

	public String getStatusName() {
		return UserStatus.getCnValue(getStatus());
	}

	public String getHumanStatusName() {
		return getStatusName();
	}

}
